package com.four.live.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author gs
 * @since 2021-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("lms_payorder")
public class Payorder extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "pay_id", type = IdType.AUTO)
    private Integer payId;

    /**
     * 购买人id
     */
    private Integer buyId;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 购买数量
     */
    private String buyNums;

    /**
     * 商品单价
     */
    private BigDecimal goodsPrice;

    /**
     * 支付金额
     */
    private BigDecimal goodsAllMoney;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 支付状态（0未支付 1已支付 2收货 3退货）
     */
    private Integer payStatus;


}
